/* @flow */

import { mergeOptions } from '../util/index';

export function initMixin(Vue: GlobalAPI) {
    Vue.mixin = function (mixin: Object) {
        // 把mixin所有成员拷贝到 this.options 拷贝到vue.options。
        this.options = mergeOptions(this.options, mixin);
        return this;
    };
}
